﻿using SqlSugar;

namespace Model.Entity
{
    public class BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        [SugarColumn(InsertServerTime = true, IsOnlyIgnoreUpdate = true)]
        public DateTime CreatedAt { get; set; }


        [SugarColumn(InsertServerTime = true, UpdateServerTime = true)]
        public DateTime UpdatedAt { get; set; }
    }
}
